package oop_homework_4;

public class TestMain {
	public static void main(String[] args) {
		Student student = new Student("张三", "男", 21, "CN");
		System.out.println("学生："+student);
		student.work();
		student.sleep();
		student.eat();
		System.out.println("---------------------------------");
		StudentCadres studentCadres = new StudentCadres("李子", "女", 22,"CN" ,"学生会主席");
		System.out.println("学生干部："+studentCadres);
		studentCadres.work();
		studentCadres.eat();
		studentCadres.sleep();
		System.out.println("---------------------------------");
		Worker worker = new Worker("王旺旺", "男", 25, "USA", "富士康", 4);
		System.out.println("工人："+worker);
		worker.work();
		worker.eat();
		worker.sleep();
	}
}	
